@section('title')
	成员 @parent
@show
@section('content')
<!-- We don't need full layout here, because this page will be parsed with Ajax-->
<!-- Top Navbar-->
<div class="navbar theme-white">
  <div class="navbar-inner">
    <div class="left"><a href="{{ route('group.detail', $sns_group->id) }}" class="external link icon-only"> <i class="icon icon-back"></i><span></span></a></div>
    <div class="center sliding field-name">成员</div>
    <div class="right"></div>
  </div>
</div>
<div class="pages navbar-through toolbar-through">
  <!-- Page, data-page contains page name-->
  <div data-page="field" class="page">
    <!-- Scrollable page content-->
    <div class="page-content">
      <div class="list-block">
				<p class="buttons-row row">
					<a href="javascript:void(0);" class="col-50 button active">律团网</a>
					<a href="javascript:void(0);" class="external col-50 button">粉丝团</a>
				</p> 
				<div class="tab-con">
					@if($lawyers)
					<div class="list-block media-list stories-list list-block-search searchbar-found">
					<ul>
							@foreach($lawyers AS $data)
							<li class="swipeout" data-id="">
								<a class="item-link" href="{{ route('search.lawyer', $data->user_id) }}">
									<div class="item-content">
										<div class="item-media">
										@if ($data->avatar )
										 <img src="{{ asset( $data->avatar) }}" width="64" height="64">
										@else
											<img src="{{ asset('/img/1.png') }}" width="64" height="64">
										@endif
										</div>
										<div class="item-inner search-inner">
											<div class="item-title">{{ $data->realname }} 律师</div>
											<div class="item-subtitle">现任职业：{{ $data->position }}</div>
											<div class="item-subtitle">{{ $data->company_name }}</div>
										</div>
									</div>
								</a>
							</li>	
							@endforeach           
					</ul>
					</div>
					@endif
				</div>
				<div class="tab-con" style="display:none;">
					@if($fans)
					<div class="list-block media-list stories-list list-block-search searchbar-found">
					<ul class="ask">
							@foreach($fans AS $fan)
							<li class="swipeout" data-id="">
								<a class="item-link" href="{{ route('search.lawyer', $fan->user_id) }}">
									<div class="item-content">
										<div class="item-media">
										@if ($fan->avatar )
										 <img src="{{ asset( $fan->avatar) }}" width="64" height="64">
										@else
											<img src="{{ asset('/img/1.png') }}" width="64" height="64">
										@endif
										</div>
										<div class="item-inner search-inner">
											<div class="item-title">{{ $fan->realname }}</div>
											<div class="item-subtitle">所在地：{{ AreaHelper::areaCodeToName($fan->province) }} {{ AreaHelper::areaCodeToName($fan->city) }}</div>
										</div>
									</div>
								</a>
							</li>	
							@endforeach           
					</ul>
					</div>
					@endif
				</div>
      </div>
    </div>
  </div>
</div>
@stop
@section('bodyEnd')
{{ HTML::script('js/image.uploader.js') }}
<script>
$$('.buttons-row a').click(function(){
		index = $$(this).index();
		$$('.buttons-row a').removeClass('active');
		$$(this).addClass('active');
		$$('.tab-con').eq(index).show();;
		$$('.tab-con').hide();
		$$('.tab-con').eq(index).show();;
})
</script>
@stop